JamesBachini.com

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

Website Monetization With Cryptocurrency Mining

I haven’t been as active on the blog recently and that is because I’ve been working on probably the most exciting project I’ve ever been involved with. For anyone that isn’t familiar with web based cryptocurrency mining I will give you a quick run down of the technology and the potential. A webmaster places a javascript code similar to an ad network snippet on their website and it carries out...

Progressive Optimisation

When looking at conversion rate statistics for a new traffic source it is important to optimise the zone ids as efficiently as possible. What I tend to do is work out roughly what conversion rate I want to target and then put a progressive funnel in place to build up to it. So if a zone only has 5000 impressions it’s hard to tell if it’ll be good or not,...