### The Sexy Sexy World Of JSON Validation

##### 2019-09-18 15:46:43 +0000

JSON is everywhere, sometimes it’s hidden from you or your user but its always there. Thousands of applications rely on correctly formatted data to work correctly with little format checking. Most of the time the data generators should have been...

### Easy Docker Containers on Raspery Pi With Portainer.io

##### 2019-04-29 20:26:59 +0000

Portainer is a great docker management GUI which is open source, hosted on GitHub. We’re going to shove it onto a raspberry pi and run a few images. This guide assumes a few things: * You have a Pi already running Rasbarian Lite, connected to your network with ssh access * You know what Docker is * You want to make managing a home server really easy. So, here we...

### Kubernetes Setup on a Raspberry Pi

##### 2019-04-27 17:06:57 +0000

I want to be able to develop apps in my spare time. Modern, scalable, disposable apps. The current hip thing (other than serverless functions, but I’m more of a back end dev so here we are) is to build a...

### What Even Is Mongo?

##### 2018-10-06 16:31:55 +0000

This is a POC for a MongoDB interface Nothing major, but document model databases allow the chains to be lifted on certain applications that can make them amazingly flexable. They’re not without their caviats but knowing how to use one would be a tick of a box when being asked to make an app. This example MongoDB for Python using Mongo Client. It assumes you have all the binarys for...

### Using Sympy for Analytical Maths

##### 2018-08-25 18:31:55 +0000

This is an example of how i would use sympy to evaluate a set of analytical questions, for example: Find $$\forall a \in [0,12,24,30,99]$$ and $$b=100$$: Where $$\alpha = 2.341$$, $$\beta = e^x$$ First we need to import the library...

### GT Coursework

##### 2018-03-20 09:28:00 +0000

This is a copy of my Game Theory Coursework I completed for the course at cardiff. Personally I found the subject facinating but the course very introductory.

### Installing LaTeX on Windows

##### 2018-02-24 22:04:51 +0000

MiKTex + VS Code + Git = a semi working, compiling, version controlled version of LaTex. Try not to break anything on your journey tho; this worked for me so it will probably work for you… Heres how to do...

### Some Useful Python Methods For Data Analysis

##### 2018-02-22 12:00:47 +0000

To get straight to the point, part of my degree includes some data analytics using python; part of trawling the web for learning materials has given me a number of useful methods to use. Unfortunetly these snippits of code never seem to be in the same place, so I’m collating them here: Before I start heres a list of the python libraries mentioned (all available using pip or included in...

### Probability and Inference

##### 2018-01-17 15:15:23 +0000

For the AI module in the Computer Science department you have to have a basic understanding of Probability and Inference. Below is an introduction to the probability details covered. First off there are a few things we have to cover:...

### Why Most Files Can't Be Compressed

##### 2018-01-14 10:30:20 +0000

This is an assumption proof given in the Cardiff Uni Maths Coding Theory and Data Compression Course. It makes sense if you understand what we mean by “most files.”; i.e. literally any random string of data. So, why, in most cases, can’t any old file be compressed? Lets start off at the beginning obvious: let $$A,B$$ be files, and they get compressed to $$C,D$$ respectively. Now $$C=D$$ if and only...

### Setting up external drives for a Plex server on a Raspberry Pi

##### 2017-12-27 23:04:55 +0000

Headless Plex server on a Raspberry Pi for all your own media to stream anywhere sound interesting? This will be brief because it’s more or a reference for myself. All the files I used are sitting on this github page!...

### Compression Techniques

##### 2017-12-19 12:20:16 +0000

The Data Compression course covers a variety of compression techniques that must be learned. Some are simple, and some are complicated, but all are not as hard as learning how computers actually work. Lossless Techniques Shannon Coding Possibly the simplest, this is purely for research and isnt really used anywhere. We will start with the following properties: Now we start the steps: Using the probabilities in $$P$$ create the cumulative...

### Backing up a Ghost blog (or anything) on AWS EC2 to S3

##### 2017-12-14 14:06:20 +0000

So you have a ghost blog(or some other amazon web thing), and you’re on AWS ubuntu (or another linuex type ┬áinstance) but you need to back it up. It would seem simple that aws should offer you a solution, and...

### Taylor Expansions in PDEs

##### 2017-12-14 12:47:43 +0000

Ever wondered what the uses for taylor expansions are in the field of differential equations? no? well you should, its rather facinating… First, what is a taylor expansion? well, basically, it says if youre trying to evaluate a function at a point that’s “close enough” to a point you already know you’ll be able to represent this slight difference as an infinate series: Or if youre more comfortable with summation...

### Genetic Algorithms

##### 2017-12-13 11:53:32 +0000

This Post is a general discussion on how genetic algorithms work and how to model them. Typically GAs are built to solve a single problem, however the concept of genetic improvement can be extended into building functionality too.. (this isn’t...

### Building tobydevlin.com

##### 2017-11-25 20:48:09 +0000

The tobydevlin.com website is the main product of this large experiment of web design, service building and self tutoring. Understanding web development is pretty crucial to getting a cushy dev job once you graduate so I’m teaching myself ­ƒôê­ƒôê. Hopefully, if I’m good enough, not only will the main page be up, but this blog will also be around too ­ƒÆ¬. Please note: Products mentioned here are because I like...

### Maths Revision Notes

##### 2017-11-24 16:08:15 +0000

Want to learn some maths? Heres some content on sections of courses I’m taking at Cardiff University. My degree in mathematics means I should be able to masquerade as a clever person for a while. Second Semester Game Theory Coursework...

### Coding Theory - Linear Codes

##### 2017-11-24 16:05:34 +0000

This will concern mostly the section of linear codes in the course of Coding Theory & Data Compression at Cardiff University. It is expected the reader knows about some sections of coding theory, there isn’t background reading on this blog… yet­ƒòú. ___ Things to know to start: The alphabet we will be using is the set $$F_q$$ where $$q$$ is prime. We will regard the vector space $$V(n,q)$$ as the...

### Hi There!

##### 2017-11-22 13:21:30 +0000

“This is the parliment building in Hungary!” So, after (many) hours of not paying attention to my lecturer, I’ve finally managed to get this ghost thing working. Maybe I’ll write a nice little piece on it in the future. For...