Category: Featured

Featured posts

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...

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...

Pop Under Code 2020

Updated January 2020 This code is used for running pop under traffic on your own site. It adds an onclick function to every link on the page which opens a new tab with the clicked link and changes the existing window (underneath) to a popped ad url. Make sure you change the var puURL from http://Google.com to whatever you want to pop. The number 3600 in the code is number...

Online Marketing Predictions For 2017

Here are my predictions for 2017 1. Native will go mainstream and start attracting big brand spenders Native advertising has been affiliate marketers little secret for a couple of years now. The volume is now at a stage where brand advertisers and big spenders are starting to come in and push inventory prices up. Quality issues are still there with a lot of native advertising being placed on sites which...

A simple floating feedback/support button

Updated for 2020 with a cleaner design. This uses the mail command in PHP to send the email but if this is disabled on your server you can connect it to Sendgrid/Mailchimp/AWS etc for the sending of email queries. There is a working example at: https://jamesbachini.com/misc/feedbackexample.html The code for this is really easy to implement as it is all just copy and paste. I’ve open-sourced the project on GitHub: https://github.com/jamesbachini/feedbackbutton...

RAM & CPU usage PHP script

Update April 2020 This single file, server health check, written in PHP. It was getting a lot of downloads so I’ve updated the code and open sourced it on Github. You can see demo here: https://jamesbachini.com/misc/servercheck.php JSON output: https://jamesbachini.com/misc/servercheck.php?json=1 Single file download here: https://jamesbachini.com/misc/servercheck.zip Github Repo here: https://github.com/jamesbachini/Server-Check-PHP Screenshot: It’ll run on Linux servers but not on Windows or Wamp. PHP Code To calculate CPU usage we use:   $load = sys_getloadavg();   $cpuload = $load[0];...