More Vectors

1 minute
Contact me

As expected my schedule is only getting busier, however I have been squeezing in some learning on my lunch breaks. I learnt a little more about vectors and vector math this week so I'm sharing my notes.

Last post I looked at add a vectors together to vectors, let's remind ourselves how that works...

1 minute
Contact me

What is a vector?

In the Euclidean sense a vector is something that has magnitude and direction.

The size of the vector is the magnitude and the direction is the angle in relation to an x axis running adjacent to the vector.

A vector doesn't necessarily have to be expressed as a magnitude and...

1 minute
Contact me

Making the random numbers seem more organic.

But there is another mathematical tool that we have at our disposal to make some nice sets of numbers. Enter:

Perlin Noise

Perlin Noise allows us to make smooth randomness, It was originally developed to create textures in 3d graphics. Let's say we...

Custom Distribution : Controlling the Random

0 minutes
Contact me

Last time I looked at how Normal Distrobution can make make random numbers consistently closer to the mean.

Let's customize the distribution a little.

Back to cacti, say we wanted to model a mature group of cacti that are all very tall.

We might create a function like this:

We would just p...

Normal Distribution : Taming the Random

2 minutes
Contact me

In post one I looked a random walker, a small dot that moved across the screen based on a number between 0 - 3.

Although It worked, It didn't move in a way that seemed natural. It was, well, too random.

Wouldn't it be great to generate sets of numbers that seem more naturally distributed.

W...

Make a Decision

5 minutes
Contact me

I'm going the explore the things to consider when planning a new project.

Make a Decision

As a web application developer I make a lot of decisions each day. The art of programming is making decisions ahead of time and writing the code to deal with the potential decisions the program sh...

1 minute
Contact me

What is Probability?

Probability is the measure of the likelihood that an event will occur. It is a way to evaluate a given set of scenarios and decide how often will event x happen.

Lets look at an example in code:

Random Walker

See the Pen Random Walker by Adam Harpur (@harps116) on C...

2 minutes
Contact me

Starting 2018

It's that time of year when everyone starts to reflect on the previous year and set goals for the current one. In the spirit of jumping on bandwagons this is my note to self. I have been doing some thinking over the last few weeks and have tried to indentify some things I would like...

CSS sanity with SASS: Setup.

3 minutes
Contact me

CSS can be painful to write and even worse to maintain...

"as I tack on line 1000 of a css file in fear of breaking something otherwise"

I think even those that truely love language would agree. If you lean towards the front end of web development CSS is unavoidable. CSS shouldn't be this painfu...

SASS ~ An Introduction

6 minutes
Contact me

In this post I am going to be building off a previous post you can find here. I went over how to install and setup Sass using Ruby aswell as the basic project structure, since that post I have came across away to use Sass with Node.

The steps are lined out in this post by Zviad Sichinava. S...