Choosing your own hosting and server type

In the past, I have paid £1000+vat a year for hosting to feed by hosting addiction.  This has whittled down in price over the years and now I’m paying just £42 inc vat!

Choosing the host type

  • Virtual Private Server (VPS)
  • Dedicated Server
  • Cloud VPS
  • Run on your home kit from your home broadband connection

Budget Hosting

Some good value providers in the UK are 123-reg.co.uk and UK2.net   I’ve been with both of them and had a few annoyances (switching my server off | Selling me hosting that was supposed to be maintained, but wasn’t | Me asking them to reboot the host and them saying that it wasn’t where is was supposed to be.  Me asking again… them saying it’s still not there and closing the call) over the years, but in all-in-all they’re worth the money.

However, this has become an absolute no-brainer very recently…  My new provider charge just £3.50 a month for SSD based VPS (mine feels super fast!)  www.vps.net

Premium Hosting

I have used a reseller account in the past and this had all sorts of features like a system for your users to manage their own accounts and resell too.  It all seemed a bit messy to me and eventually I’ve gone for managing it all myself with a few custom written scripts that do things perfectly.

I’ll expand this section as and when.

Llama – I’m going to be late home

Prerequisites

My setup

I travel from Manchester to Stafford.  My missus leaves the house about 15 mins before I am due to arrive.  The train stop before Stafford is Crewe and the time difference is about 22 mins… perfect timing to message her if late.

So for my example I did the following…

 

  1. Set up an Area called “Crewe
  2.  Set up an Event called “Arrive at Crewe”
    1. Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
    2. Added a Condition for Time Between = 16:00 – 19:00
    3. Added a Condition for Enter Area = Crewe
    4. Added a Condition for Llama variable = When ‘ArrivedAtCrewe’ has a value of ‘False’
    5. Set up an Action of Set Llama variable ‘ArrivedAtCrewe’ to ‘True’
  3. Set up an Event called “Late to Crewe”
    1. Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
    2. Added a Condition for Time Between = 18:05 and 18:06
    3. Added a Condition for Llama variable ‘ArrivedAtCrewe’ has a value of ‘False’
    4. Added a Condition for Llama variable ‘LateToCreweSentSMS’ has a value of ‘False’
    5. Added an Action of run Locale plugin ‘SMS: <number>’ with a message of “I’m late, not arrived at Crewe yet!” (also checking the setting to prevent multiple SMS’s in one hour)
    6. Added an Action of Set Llama variable ‘LateToCreweSentSMS’ to ‘True’
  4. Set up an Event called Arrive at work
    1. Added a Condition for Day of the week = Mon, Tue, Wed, Thur or Fri
    2. Added a Condition for Time Between = 09:30 – 09:45
    3. Added a Condition for Enter Area = Work
    4. Set up an Action of Set Llama variable ‘ArrivedAtCrewe’ to ‘False’
    5. Set up an Action of Set Llama variable ‘LateToCreweSentSMS’ to ‘False’

A further extension to this would be to create another Event which detects Entering Crewe and if the LateToCreweSentSMS is set to True then send another text to say that I have just arrived at Crewe and should be around 22 mins.

EDIT: This isn’t working brilliantly at the moment, as if the train hangs around just outside the station waiting for a platform, then Llama thinks that it has arrived.  I’m working on some logic to detect that it has arrived and then left the area for 5 mins before texting.

Android automation with Llama

The Llama application is a free automation tool available on the Google Play store.

I have recently set up a few things that make my life much easier.

1) Automatically pre-book my Cross Country seat using their TMR (ten minute reservation) service – if I’m at work at 9:30am.

2) Automatically SMS my missus if I haven’t arrived at the train station before my destination by 18:05.  See here for details on how to do it.

Please comment with life automation that you have come up with.

Huawei HG523a forgotten password

Okay, I’m a numpty – I forgot the admin password for my router.  The (security driven) delay before you can try again is hampering me from trying the many I might have used – especially as it doesn’t tell you if it was wrong or it is still timed out!

Luckily, on one of my computers, I have a cookie saved that fills my username and password in for me, so I can still log in.  Okay, so I must be able to recover my password from this… right?  I really don’t want to have to factory reset the thing.  Challenge… wait for it… accepted.

  • Enter the menu system (with your saved credentials).
  • Click Advanced and click Okay to proceed.
  • Click Maintenance, click Device, then click the Configuration File tab.
  • Click the Download Configuration File button and save it to your desktop.
  • Open the file with Notepad (or Wordpad).
  • Search for the text Userpassword
  • Copy and paste the password into the http://www.base64decode.org/ website.
  • Click the <Decode> button.
  • Your password will be displayed in plain text.

 

MineCraft Pi Edition – Robots game

I’ve just whipped up a 3D Robots game that runs inside MineCraft on the Raspberry Pi.

To install

Bring up a VXTerminal window and run the following command

git clone https://github.com/ZeBadger/minecraft-robots.git
To run

Start a MineCraft game on your Raspberry Pi and then in VXTerminal run the following commands

cd minecraft-robots
python minecraft-robots.py
How to play
Two robots about to collide
                  Two robots about to collide

Run away from the robots.  If they touch you – you lose.  Try and get them to crash into each other by moving strategically.  Kill all 10 robots to win!

Have fun !