LPTHW - Ex 0: The Setup

This is all about setting up your development environment. I wasn't going to bother writing this up as it seemed like a fairly basic thing but that's just not the case. There are so many considerations when it comes to how you want to set things up and as a newbie you can get yourself off down a rabbit hole and find you need to redo a bunch of things later on down the road when your skill improves or you need to change systems.

Read more...

Learn Python The Hard Way

In addition to the Odin Project I've decided to simultaneously undertake the Learn Python The Hard Way course by Zed Shaw. Learning two things at once might sound overkill but spending 6 hours plus a day on one topic can just lead to burnout. So, with a range of things to cover, I hope to spread out the brain pain and probably learn a little faster or more deeply than I would otherwise.

Read more...

Nginx rewrite rules for MyBB SEO friendly URLs

I've recently switched a forum I run from Wordpress and bbPress to MyBB. Overall I've very happy with it but there are a few bits to watch out for with MyBB.

If you are running Nginx instead of Apache as your webserver then one of those things to watch out for is the need to manually update the rewrite rules needed for SEO friendly URLs.

MyBB SEO friendly URLs

Below is the full set of Nginx rewrite rules for rewriting MyBB's SEO friendly URLs. To activate this option in MyBB you can do so from the Admin CP:

Read more...

Wordpress Headway Theme: Page cache not working with W3TC and WP Super Cache


UPDATE - Headway developers are currently looking into this issue and are working on a patched version of Headway fixed this in Headway version 3.8.3.


Having trouble with page caching not working when using Headway Theme framework for Wordpress? Tried both W3TC and WP Super Cache and still getting weird problems? I've got good and bad news for you...

This won't be a particularly short post because the problem is a little convoluted, but it does contain some answers and a workaround which should allow you to take an informed decision on how you wish to proceed.

The good news is there are workarounds to the problem. The bad news is that these are only workarounds and by default there are big problems with Headway and page caching.

W3TC + WP SuperCache Page Caching Problem with Headway Theme

To understand the problem first it's essential to know a couple of things about how W3TC, WP Super Cache and Headway Theme for Wordpress handle page caching.

To begin, lets look at how Headway itself handles it CSS and JavaScript.

Read more...

The Odin Project - Google Homepage Build

Following the HTML/CSS Basics course on The Odin Project, students are asked to undertake a project to rebuild the Google homepage.

What's this project about?

The project is ostensibly about testing your newly learned skills with HTML and CSS but it also calls on you to use Git, GitHub and the Developer Tools in your browser. These are all fairly simple tasks but with anything you do for the first time, getting it done can be a little daunting.

Image of Google homepage

Read more...

The Odin Project - HTML and CSS 101

Having completed the HTML and CSS 101 course (and starting as I mean to go on) here are some thoughts on the lesson.

Firstly, this is a basic course. It's not meant to be that in depth and it's not supposed to overwhelm with info. And it doesn't!

I enjoyed it to be honest. It wasn't world changing or anything, primarily because I'd done a lot of this before but it still filled in a few gaps.

There's a difference between learning and doing, and the 'doing' part of this course is the key to it's success.

The main thing I noticed throughout (but mostly during the CodeCademy section) was the emphasis on doing things. There's a difference between learning and doing and the 'doing' part of this course is the key to it's success.

Physically typing out the HTML and CSS over and over again really started to make it second nature and somehow cements it in your mind a simply another language that can be read and written like any other.

Read more...

The Odin Project - A Journey

Here we go then, the start of something big...maybe. In an attempt to avoid being one of those that fizzles out half way through I've decided to blog my way through The Odin Project course.

What is the Odin Project?

If you don't know about The Odin Project, go and take a quick look. It's FREE, and it's a great resource that brings together all sorts of tutorials and information from around the web in a logical and consistent package that anyone can follow along and learn with.

It basically creates a structured 'course' to follow so you can learn how to be a Web Developer.

Be warned though, it's not something you can do in a weekend. It'll likely take months of hard work to complete the whole thing, but it's one of the best 'teach yourself' courses that I've come across and I highly recommend it.

Read more...

Find the Absolute Path to a folder or directory in Mac OS X

Mac OS X doesn’t have an obvious way to view the exact text based path to a folder (otherwise known as a directory) in the finder window. You can have it show a graphical path, but getting just the text based path to a directory (for use in the Terminal for example) requires a couple of extra steps.

Yosemite users special note

Apple removed the ability to easily copy the file path in OS X Yosemite. Yosemite users must now follow a complicated procedure of creating a Service to do this simple task or take the path directly from the command line.

El Capitan - Built in file path copy function

If you are a El Capitan user you are in luck, Apple has now created a specific command to capture the file path. Instructions on how to use this can be found here.

Mavericks and below - How to find the Absolute Path to a folder on Mac OS X

Here are the instructions for finding the file path on Mavericks and below...

Read more...