Author: James

How To Calculate EV (Expected Value) By Analysing Risk & Reward

Expected value or EV is a term used in finance and gambling to define the estimated return of a given situation based on enough iterations. For example if you bet $1 on a coin toss your EV would be 0 because you would win/lose 50% of the time and your loss would be $1 and your win potential would be $1 ($2 including your original stake). So in this simple...

micro conversion example

Micro Conversions | Complete Guide To Optimising & Scaling With Micro Conversions

What are micro conversions? Micro conversions are minor events such as clicks and scrolls that we can use to track visitor behaviour and optimise advertising and landing pages faster. They are generally not directly linked to key performance indicators for an advertising campaign but can be used to scale (increase traffic volumes) more effectively. Scale Campaigns Profitably Micro conversions are most valuable when you are scaling a campaign across multiple...

8 Tips For The Perfect Blog Post

This is the revised 2020 complete guide to the best practices when creating content for your blog. You you can use this framework to create a the “perfect blog post” and move your site up the search engine rankings. The Title The title or headline of a blog post should be a close match to a search query but also just clickbaity enough to get a higher click through rate...

How to encrypt text in Visual Studio Code (VSCode)

I wanted a way to quickly encrypt and decrypt files in Visual Studio Code using a memorised pass phrase so I created an easy to use plugin. VSC has become the text editor of choice for most developers and it is relatively simple to create and publish a plugin using Javascript or Typescript. The Encryption-VScode plugin uses AES encryption to encrypt/decrypt the contents of the current text file. The Crypto-JS...

Preventing Mobile Browsers From Turning Off

The following code has been published which prevents a mobile browser from going into sleep mode. This was affecting setTimeout functions as the javascript code in the browser is effectively paused preventing the event loop from processing once sleep mode is activated. I originally looked at nosleep.js but ended up simplifying the code and putting it into a standard module for Vue.js https://github.com/jamesbachini/StayAwake.js The code works by looping through a...

Search For Satoshi

In 2008 an anonymous user with the alias Satoshi Nakamoto posted the original Bitcoin whitepaper to the Cryptography mailing list. Satoshi mined a lot of the early Bitcoin blocks and the rewards that are held in bitcoin wallets associated are estimated to be around 1 million BTC or 10 Billion USD. If Bitcoin eventually reaches $120k, Satoshi will become the richest man in the world. These wallet addresses and no...

Setting up HTTPS (SSL) with Cloudflare and WordPress

I’ve been working with blockchain and cryptography for 3 years now which is probably a good time to update the old wordpress blog to SSL before anyone notices. Turns out I don’t need to purchase or manage an SSL certificate, which is a shame because I loved breaking things with that certbot thing on linux. If you are just running a wordpress blog or simple website like this one you...

Cryptocurrency During The Next Recession

I learnt the hard (and expensive way) not to try and predict stock market timings so I wont guess when the next recession will occur. Like a knock on the door from someone wanting to talk about Jehovah, you know it’s going to happen but it’s normally at the most inopportune time when you don’t expect it. In this article we are going to look at how a general recession...

Book Review: It doesn’t have to be crazy at work – Jason Fried and David Hansson

Amazon Link: It doesn’t have to be crazy at work This is a short book about efficiency and calm in the workplace. I read it six months or so ago and some of the concepts are really useful if you are used to working in high pressure environments. Chapter Breakdown Curb your ambition – don’t try to change the world Defend your time – don’t allow others to distract you...