You can’t go back and change the beginning, but you can start where you are and change the ending.” — C.S. Lewis

“Person standing on rocky cliff” by Jeremy Perkins on Unsplash

Often, you hate who you turned out to be. The dreams and aspirations you had as a child a distant memory.

The same routine every day. Surrounded by friends or family who don’t appreciate you. Doing what you do only to please others. Maintaining bad habits. Having no motivation.

I’ve been there myself.

There are several easy changes you can make immediately to turn this around. Become the person you always wanted to be.

Win at life.

Invest in yourself

We’ll use PHP to calculate the 8-day and 21-day exponential moving averages to determine bullish/bearish crossovers for bitcoin.

Photo by Nokwan007 on

What are moving averages?

Moving averages allow you to visualise the price action for a financial instrument over a period of time. It’s widely used in technical analysis and referred to as a “lagging” indicator as it’s based on historical prices.

The two commonly used averages are simple moving average (SMA) and exponential moving average (EMA). The SMA is the simple average of a security over a specific period. The EMA is similar, but attributes greater weight to more recent prices.

Examples of SMA and EMA

The easiest way to understand SMA and EMA is looking at an example.

We’ll take the closing prices of a fictional security over…

Detect faces in images using the Google Cloud Vision API

You’ve probably seen facial detection before. As soon as you upload that family photo to Facebook, you’ll notice the boxes around all detected faces. And with facial recognition, it sometimes even auto-tags the correct friend too. It’s not always 100% accurate, but it’s still some great engineering!

Applications for facial detection

In this article, we’ll get up and running using the Google Cloud Vision API to detect faces. We’ll be using an existing image and we’ll draw a box around each detected face.

There are several real-world use cases for facial detection. Some of these include:

  • detecting whether an uploaded image has any faces…

Very little is needed to make a happy life; it is all within yourself, in your way of thinking.” — Marcus Aurelius

Photo by John Canelis on Unsplash

Many people stumble through life unhappy. Whether it’s a failing relationship, troubles with your job, or a simple lack of interest in anything.

There are several small things you can do to change this. I’ve shared a few steps below that I’ve experienced first-hand.

1. Material things won’t make you happy

A few weeks ago, my sister-in-law told me that her one-year old son became bored of a toy we gave him for Christmas. He simply lost interest in it after playing with it for weeks…

Write your own sentiment checker in 5 minutes.

Sentiment Analysis is the process of determining whether a piece of text is positive, negative, or neutral.

Real world applications for Sentiment Analysis

The goal of this article is to get you up and running using the Google Natural Language API with Laravel. You’ll be using this API to perform sentiment analysis on text.

Using these techniques, you can build some great functionality into existing applications. Some ideas include:

  • detecting sentiment in comments or reviews
  • forecasting market movements based on social media activity
  • ascertaining the effectiveness of a marketing campaign by observing sentiment before and after

Interpreting Sentiment Analysis values

The Google API takes the provided text, analyzes it, and…

I’ve written about consensus algorithms in cryptocurrencies before. If any of the concepts below seem unfamiliar, I recommend a quick read of that article.

What is a 51% attack?

A 51% attack occurs when an attacker (or group) controls more than half of the network. 51% attacks are also referred to as majority attacks. With Bitcoin and other proof-of-work currencies, controlling the network means controlling the hash rate or computing power.

Consensus algorithms are paramount to the blockchain. Let’s look at an example to illustrate this.

Chuck is a nefarious buyer looking to spend some of his cryptocurrency. We’ll call the currency BadCoin. He finds two merchants that accept BadCoin: Alice and Bob. Chuck goes ahead and purchases a pineapple from Alice. He then purchases a rubber duck from Bob using the same coin. Both transactions enter a pool of unconfirmed transactions.

Both Alice and Bob, excited for the sale, ship their products immediately. Unfortunately, the system will only confirm one of the transactions (Chuck only had enough to spend on…

Darren Chowles

Husband and father of 2 girls. Web developer with a keen interest in security and psychology. Website:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store