Ansible connection failure with Ubuntu Server 16.04

Having trouble connecting to Ubuntu Server 16.04 from your Ansible control machine? If you ping your Ubuntu Server do you get a similar error: ubuntu_host | FAILED! => { "changed": false, "failed": true, "module_stderr": "Shared connection to 138.68.174.106 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 0 } If you do, there's a simple solution (and you should have read the docs! :-D ) Ansible Python not found on Ubuntu Server 16.

Read more...

Javascript and jQuery | An Odin Project

I'm finding the Odin Project isn't really that easy to blog your way through like you can with LPTHW, but this project seemed like a great one to share. This is a long post, so here are some links to jump to the relevant sections: Completed example and live project section. Lessons learned section (hints on how to approach the project). Example section (walkthrough of my project). Javascript and jQuery - completed project You can take a look at my completed project live in your browser by clicking the link below:

Read more...

LPTHW - Exercise 22: What do you know so far?

LPTHW - Exercise 22 No code or study drill in this lesson. Today we'll be going back over everything we've done so far and make sure we know what every little bit does/means. To do that we're going to go back through each lesson and identify every keyword or symbol that we've used. Then we'll write up exactly what each of those means or what it does. Useful resources There are a few excellent resources that you can keep refering back to when refreshing your memory on the points below.

Read more...

How to install HL-3040CN Brother printer drivers on Linux (Ubuntu)

For this guide we're going to be looking at the installation of drivers for the Brother HL-3040CN laser printer and how to set up the connection to get it to print over the network. The instructions on the Brother printer driver pages do actually work (just about) but they're not exactly crystal clear. For instance, they don't have all the info on one page and they also tell you to set a connection setting that will potentially break printing if your printers IP address changes.

Read more...

LPTHW - Exercise 21: Functions Can Return Something

LPTHW - Exercise 21 Well it feels like I'm finally getting somewhere. Learning the basics over and over again as I am (I'm also doing the Odin Project) gets a bit demoralising. Finally getting to this stage here (and prety much the same stage in the Odin Project) feels like a bit of a breakthrough. That's not to say there isn't a long way to go! It is nice though to feel a little bit like I'm emerging from the dense forrest and starting to be able to glimpse the land beyond.

Read more...

LPTHW - Exercise 20: Functions and Files

LPTHW - Exercise 20 More functions this time but here the focus seems to be on being able to follow the 'flow' of multiple functions, not ones that pass data from one to another but just being able to read and follow how a script with multiple functions works Because the script undergoes extensive alterations through the lesson, I'm going to post it in parts with my additions in a separate section below.

Read more...

LPTHW - Exercise 19: Functions and Variables

LPTHW - Exercise 19 When I first read through this lesson it seemed like a breeze, and it was, until I got to the study drills. There's nothing in the script itself that's tricky, it's mostly just a refresh of the last lesson and confirms you can write out the functions correctly. But the study drills take it to a new level with the requirement to write your own function and call it 10 different ways.

Read more...

LPTHW - Exercise 18: Names, Variables, Code, Functions

LPTHW - Exercise 18 Yey! Functions! Turns out we've already been using them in previous exercises with things like close() and open() but here we get to write our own one properly. What is a function? A function... ...lets you group a series of statements together to perform a specific task. If different parts of the script repeat the same task, you can reuse the function (rather than repeating the same set of statements).

Read more...