Notifying Google of an XML sitemap via a URL

Today I found out you can easily notify Google of an XML sitemap by ‘pinging’ Google via a GET request: http://www.google.com/webmasters/sitemaps/ping?sitemap=URLOFSITEMAP.xml You can perform this via PHP, or if running on Linux; use wget.

Read More

Quick and Easy SSL chipers

I’ve recently came across the https://cipherli.st/ site, from the cron.weekly email newsletter (I highly suggest you sign-up, some great posts and sites featured). Cipherli.st allows you to copy and paste SSL ciphers for a variety of web software (Apache, Nginx, etc.).

Read More

In-page embedded viewable PDF documents without a PDF reader

Here is a neat trick which I’ve found: using a tool by Google named Docs Viewer you can embed PDF (Or office and Postscript) files into a webpage to be viewed on screen, even without a PDF reader plugin installed in the user’s browser. Simply use the snippet below and change where your_document_here is mentioned twice […]

Read More

Assigning fixed names for USB devices with udev on Linux

Whilst you can use udev rules with any USB device, I am writing this post to help anyone else who is also having issues with their USB printer name. The main which I had was is the printer’s USB name changing when it is restarted, plugged into a different USB port or when another USB device is connected […]

Read More

Looping through a Data Map with Sass

I’ve decided to share this code for anyone who requires a quick ‘copy and paste’ solution for using data maps (map-get) and loops within Sass. This example will allow you to set values within the data map, then loop through and output as CSS rules. Setup the variables within the data map and create the code […]

Read More

Using statuscake.com to monitor your website and database uptime

Note: Updates have been added since this article was originally written. These updates are listed at the bottom of this page, click here to view them. This guide will show you how you can monitor your website and database uptime using a free service from Status Cake (https://www.statuscake.com). Once you have setup an account, you will […]

Read More

PHP Function: Get a file’s last modified timestamp

I’ve recently found the need to show a file’s last modified timestamp. This function is useful when including CSS or JavaScript files. By including a query string will ensure web browsers re-download a fresh copy of the file rather than using a cached file. Simply run this function as you’re including a file, such as: […]

Read More