Category: Tutorials

Learn how to do things with PHP, Raspberry Pi, Linux and WordPress by following my tutorials. If you ever want to know how to do something that I don’t have a tutorial for, contact me and I will look to write one.

momentum scrolling on iOS

CSS: How to add momentum scrolling on Safari iOS to elements with overflow: scroll

If you’re a front-end developer working with SASS/CSS, chances are you’ve had to add elements with horizontal scrolling on them. These have become increasingly popular as native scrolling promotes good UX practice and accessibility. The issue is, Safari (and Chrome, Firefox etc) on iOS don’t natively support ‘momentum scrolling’. The same is true of vertical scrolling on items with overflow: scroll too.

(more…)

Boost Raspberry Pi performance by installing Raspbian on a USB Flash drive from Windows

By default, Raspbian runs from a MicroSD card on your Raspberry Pi. Micro SD card performance in terms of speed and reliability tends to be considerably less than with USB Flash storage. This tutorial will guide you through the process of installing Raspbian on a USB Flash drive from Microsoft Windows. Once you’re done, your Raspberry Pi’s performance will increase considerably.

(more…)

Create your own Cloud server on Raspberry Pi with OwnCloud

OwnCloud is an all-in-one solution for creating cloud storage, calendar and contacts servers. OwnCloud allows you to share files through an easy-to-use web interface, similar to OneDrive from Microsoft and Google Drive.

To make our OwnCloud installation even more robust, we’re going to use a RAID volume for our storage. I’m going to assume you’ve followed my previous tutorial ‘Create a RAID Volume on Raspberry Pi‘ first, although this is not necessary.

(more…)

Create a RAID volume on Raspberry Pi

In this tutorial, I will go through the steps necessary to create a RAID volume in Raspbian OS on your Raspberry Pi. RAID allows redundant, quick or extended storage depending on which RAID level you go with. I’m going to assume that you’ve followed my previous tutorial on how to install and run Raspbian OS from a USB Flash Drive, although this isn’t necessary.

As we’re using a software RAID controller, we can’t run the OS from our RAID volume, but we can use to for storage. This tutorial is part one of two where we will use our RAID volume for creating our own cloud storage platform using OwnCloud. View the Installing OwnCloud on Raspberry Pi tutorial.

(more…)

Create a portable battery and solar powered Raspberry Pi Zero web server

I asked the community on Reddit what tutorials people wanted me to write, and one, in particular, caught my imagination. ‘Thaslegendary’ said:

“A guide on how to power raspberry pi zero with 4 AA battery would help me a lot”

This really got me thinking. Can I build a portable web server that runs off battery alone, topped up with a solar panel? There’s only one way to find out. At the time of writing this, the Raspberry Pi Zero is running on a solar power bank and is therefore completely off the grid.

(more…)

How to add your Plugin to the WordPress Plugin Directory

I’ve written countless plugins for WordPress over the years in work and for my own personal projects but never had I created on with the intention of adding it to the WordPress plugin directory until recently. This post outlines my experiences when writing my Tides Today WordPress Plugin and hopefully answers some of the questions I found myself asking.

This article is targeted at those adding a plugin to the WordPress plugin directory, especially if you have Git services like BitBucket or Github and have no experience with SVN.

(more…)