Development
-
RAILGUN 2.0 | ZK Privacy Protocol
Railgun just announced the launch of version 2.0 this week and in this article we are going to explore the zero knowledge wallet and discuss why privacy protocols are important. In August 2022 Alexey Pertsev was arrested and he has been imprisoned without trial ever since. He was a developer on a ZK mixer called…
-
Timeframe & Budgets For Web3 Development
In this article I’m going to provide a timeframe, gantt chart and budget costs for web3 development projects. This assumes a medium sized project for something like a new, innovative DeFi protocol consisting of 5-10 interconnected smart contracts and around 1000 lines of code plus an external audit and dApp frontend. If you are just…
-
Dynamic Evolving NFTs | How To Create Dynamic NFTs & dApps
Dynamic NFTs include logic that evolves the underlying data that the NFT contract holds. In this example we will build a picture profile NFT that is upgradeable to an alien 👽 All the source code for this project is available at: https://github.com/jamesbachini/WomenWhoCode Dynamic NFT Smart Contract The Solidity smart contracts will comprise of two tokens:…
-
POAP vs NFT | A Guide With Examples
In this article we will look at what POAPs are and how their technology is built on top of NFT standards. We will also look at how to create simple POAPs and NFTs. In the conclusion I’ve put together some thoughts on why I think POAPs should only be used for fun and not for…
-
SAFT Template | Simple Agreement Future Tokens
Below I’ve shared an example SAFT legal agreement and a smart contract which can be used to lock up tokens. James On YouTube Watch On YouTube: https://youtu.be/hpsegda6gvo |Subscribe What Is A SAFT? A SAFT is a simple agreement for future tokens. It is used primarily for blockchain projects to sell tokens at an early stage…
-
Ethereum DevCon Bogotá Write Up
In this post I’m going to try to summarise some of the most interesting talks at from DevCon 2022. Here’s a video summary about the key takeaways from the conference. James On YouTube Watch On YouTube: https://youtu.be/kgiAV7z1fwo |Subscribe The main topics for this years event were: One of the best things about the event is…
-
Complete Introduction To Web3 Tutorial | Fullstack Web3 Development Tutorial
This video course provides a complete introduction to Web3 development. The Web3 tutorial starts with a simple Hello World smart contract and React frontend before diving in to create something useful on Ethereum mainnet. Introduction To Web3 Development James On YouTube Watch On YouTube: https://youtu.be/RwuG9HluFQY |Subscribe Hello World Smart Contract James On YouTube Watch On…
-
Solidity Token Factory Contract Walkthrough
A token factory contract is used to deploy tokens from a parent contract within Solidity. In this simple example we will be deploying an ERC20 token from our factory contract. James On YouTube Watch On YouTube: https://youtu.be/MY9SoGPGVoo |Subscribe Full source code below and on Github: https://github.com/jamesbachini/Token-Factory-Tutorial We start with a standard ERC20 token using the…
-
Trading The Merge
Once or twice a year the crypto markets align to provide exceptional trading volumes and volatility. I believe the Ethereum merge will presents one such opportunity for low time frame system trading. James On YouTube Watch On YouTube: https://youtu.be/3ltpF4UGir4 |Subscribe About The Ethereum Merge The merge is happening in just a few days. This is…
-
The State Of CBDC Central Bank Digital Currency
Nation states across the world are exploring CBDC’s (central bank digital currency). Many governments including France, Canada, Saudi Arabia & China have pilot schemes already in place. The US dollar is the global reserve currency, it’s used throughout the world as a base asset and more recently as a political weapon in the form of…
-
Aligning Founders, VC’s and Stakeholders Interests In A Smart Contract
The blockchain sector prides itself on openness and transparency. Except that is when it comes to early stage VC deals and token allocations. In this article we are going to look at an experimental solidity smart contract which lays out terms, vesting schedules and milestone bonuses on-chain. Team Allocations and VC Unlock Schedules This is…
-
Dune Analytics Tutorial | How To Create A Dune Analytics Dashboard
In this Dune Analytics Tutorial we will look at how the platform works and get up to speed with creating our own queries, visualisations and dashboards to analyse and present blockchain data. Queries, Visualisations & Dashboards Dune Analytics dashboards are built using a 3 step process. First we make SQL queries to pull data into…
-
Solidity Tutorial | Fixed Rate Staking Contract
In this tutorial we will create a fixed rate staking contract that pays out 1 token for every 1 token staked per year. The contract will be built on an OpenZeppelin ERC20 token library with additional functionality for staking. The user will stake their tokens which will lock them in the smart contract at what…
-
Zero Knowledge Proof | How ZKP Works In Blockchain Applications
Zero knowledge proofs offer a method for developers to prove data validity or knowledge of data without revealing the data or additional information about the prover. Zero knowledge proofs are becoming widely used in blockchain applications from smart contracts like Tornado Cash to ZKrollups which are layer 2 blockchains on top of Ethereum. In this…
-
3 Examples Of How To Use Assembly In Solidity
Ethereum developers can directly use assembly in Solidity to improve the performance of their code. When OpenSea released the Seaport upgrade it reported the use of assembly reduced gas fees by 35% saving it’s users an estimated $460m per year. Today we are going to go through some simple examples of how and when to…
-
Solidity for Beginners
Solidity is the programming language used to develop smart contracts on Ethereum and other compatible blockchains. In this “Solidity for Beginners” tutorial I will take you from setting up solidity tools to deploying your first contract. James On YouTube Watch On YouTube: https://youtu.be/yM6oRMdMiTM |Subscribe Tools & Setup We will be starting in Remix which is…
-
SBTs 👻 | Soulbound Token Solidity Example
Soulbound tokens are non-transferable digital assets. The core concept is storing on-chain data directly relating to a specific address. This is nothing new but there is potential for a ERC SBT contract to provide a industry standard for how we manage user data. James On YouTube Watch On YouTube: https://youtu.be/yCHeHI8hUY8 |Subscribe Ethereum gas costs make…
-
Solidity Interface Examples | How To Connect The Lego Bricks Of DeFi
Solidity interfaces allow developers to call external contracts from within their own smart contract. This enables us to build on top of the existing DeFi ecosystem. In this tutorial we will be looking at how solidity interfaces work and going through some example code for common tasks. James On YouTube Watch On YouTube: https://youtu.be/GWZmklp7RTg |Subscribe…
-
Hardhat Plugins & Hacks For Solidity Developers
Hardhat provides a lot of features out of the box but with the addition of some 3rd party plugins and some additional code snippets we can add custom functionality to streamline our testing and migration processes. Top 3 Hardhat Plugins These plugins add a lot of functionality to make your life as a developer easier…
-
Foundry Tutorial | How To Debug & Deploy Solidity Smart Contracts
Foundry is a Solidity Framework for building, testing, fuzzing, debugging and deploying Solidity smart contracts. In this Foundry tutorial we will cover the following: Introduction To Foundry [Video] James On YouTube Watch On YouTube: https://youtu.be/VhaP9kYvlOA |Subscribe Smart contracts are most often written in Solidity but tested and deployed using Javascript frameworks such as Truffle or…
-
5 DeFi Growth Metrics For Better Valuations
Growth metrics have been used by tech VC’s for years to predict and monitor companies growth patterns. Terms like CAC (Customer acquisition cost) and LTV (Lifetime value) are critical to how we value startups in the traditional space. In DeFi the landscape is different and the metrics that we use are too. However on-chain transparency…
-
How To Generate Artwork For NFT’s With Jang.js
This article explains how to generate artwork for NFT’s like cryptopunks where there are 10,000 profile pictures. Most of the NFT generators you’ll find online are designed for simplicity and ease of use for non-developers. I wanted to create something which was customisable and expandable to allow for more innovative NFT collections. Jang.js “Just Another…
-
Tokenomics Boilerplate | Governance Tokens, Uniswap Buy-Backs and Staking in Solidity
In DeFi a projects success is greatly tied to the effectiveness of the tokenomics. Governance tokens can be distributed to the users to incentivise growth and fees can be used to buy these back on exchange. In this Solidity tutorial we are going to deploy a governance token, a Uniswap v3 liquidity pool, a buy…
-
EthGlobal Hackathon | Winning $4300 And Advice For Future Participants
EthGlobal hackathons are the largest and most prestigious in the blockchain developer space. The February 2022 “Road To Web3” event was focused on the migration from web2 social networks to web3 technologies. Over the weekend around 400 teams built projects using sponsors technology including Polygon, Uniswap, Moralis and Web3Auth. This video talks about the experience…
-
Introduction To DEX Arbitrage | Intermediate Solidity Tutorial
This Solidity tutorial will provide an introduction to DEX arbitrage with real, working, profitable open-source code. Solidity developers have the ability batch multiple swaps together and if they are not profitable revert the entire transaction only paying the transaction fee. The creation of EVM blockchains which have low transaction fees has created a playground for…
-
How To Automate Yield Farming | Harvesting Rewards With A Quick & Dirty Script
Connect wallet, click button, confirm transaction. It gets old pretty quick, especially when you need to do it daily to compound returns. This tutorial takes you through the process of using a block explorer to find functions, calling those functions from a script and then executing to harvest and stake reward tokens. The aim is…
-
How To Make Cross Chain Transfers With Multichain
I’ve seen Anyswap popping up more and more in on-chain analytics reports as it’s grown to be a six billion dollar protocol by TVL. The platform just rebranded to Multichain and its fast becoming the market leader in cross chain bridges. If you want to transfer USDC from Ethereum to Polygon or Fantom or another…
-
Crypto Market Thesis 2022 & Current Portfolio Holdings
This article outlines my thoughts and predictions for crypto markets heading in to 2022. At the end of the article I share my allocations and plans for this year. Crypto Market Thesis Video James On YouTube Watch On YouTube: https://youtu.be/ogBcbwuasWw Bitcoin Market Outlook Crypto markets have cooled off significantly since summer 2021 but expectations are…
-
Blockchain Developer Roadmap | A Guide To Learning Blockchain Development
This blockchain developer roadmap lays out a framework for learning blockchain development. It should provide a wealth of resources and information for aspiring blockchain developers. Blockchain Developer Roadmap James On YouTube Watch On YouTube: https://youtu.be/h-IcAZX7250 Understanding The Moving Parts There are a number of roles within the blockchain sector and an understanding of what each…
-
Crypto Market Volatility | List Of 100 Altcoin Betas Relative To Bitcoin
In this study we are looking at crypto market volatility and how different altcoins markets move relative to Bitcoin. For example if Bitcoin moves up or down 1% Solana will roughly move double that amount for various reasons discussed below. Crypto Market Volatility List FTX Market Beta Volume BTC-PERP 1.01 $4609m ETH-PERP 1.29 $4471m SOL-PERP…
-
How To Create A TradingView Indicator | Easy Pinescript 5 Tutorial
In this Pinescript tutorial we will build out a simple TradingView indicator using the latest version of Pinescript v5. TradingView Indicator Tutorial This video goes through the Tradingview indicator tutorial with more details and code snippets available in the article below. James On YouTube Watch On YouTube: https://youtu.be/gWw6Hv3CuBU Getting Started With Indicators TradingView indicators are…
-
How To Clone Safemoon
In this tutorial I’ll show you how to clone Safemoon and create your own token on Binance Smart Chain. I’m going to do this without any development tools using only a web browser with the metamask plugin. Safemoon is a cryptocurrency token with a function that taxes 10% of all transactions and redistributes 5% to…
-
Intermediate Solidity Tutorial | Building On DeFi Lego Bricks With Hardhat 👷
In this intermediate solidity tutorial I’ll be building, testing and deploying a smart contract to rebalance a digital asset portfolio. The idea is to look at how we can work with external smart contracts to start building our own products on the lego bricks of DeFi. The Challenge To create a solidity smart contract to…
-
Markdown Tutorial | How To Get Started With Markdown 🖋
In this markdown tutorial I’ll be showing you how to get started with writing simple markdown for docs and social media before going on to some more advanced concepts and exploring the things you can do with markdown. Markdown Tutorial This video goes through the basics step by step. There are more details, copy &…
-
Arbitrum Tutorial | How To Use The Ethereum Layer 2 Solution
This Arbitrum Tutorial explores what Arbitrum is and how it works, the opportunities layer 2’s present for investors and developers, before testing the deployment of smart contracts on the Arbitrum network and calculating gas fee reductions. What Is Arbitrum? Arbitrum is a layer 2 scaling solution for the Ethereum network. The L2 has opened it’s…
-
How To Create A New Token And Uniswap Liquidity Pool
In this article I will create a new token and make it available to swap on a decentralised exchange. I’ll be deploying a solidity smart contract to mint an ERC20 token on Ethereum and setting up a liquidity pool on Uniswap v3. Create A New Token & Liquidity Pool [Video] This video provides an overview…
-
Solidity Tutorial | For Developers Coming From Javascript, C++, Python
In this Solidity tutorial I’ll be going through the work flow to develop smart contracts on Ethereum using the Solidity programming language. Solidity Developer Tutorial [Video] James On YouTube Introduction To Solidity Smart Contracts Solidity is the programming language of Ethereum and many other blockchains that use the Ethereum virtual machine. A developer will write…
-
Uniswap V3 Trading Bot 🦄
In this tutorial I’ll be explaining how I built Uniswap v3 trading bot in preparation for arbitrage opportunities. We will be looking at why Uniswap v3 is important and how concentrated liquidity pools provide new features such as range orders. I’ll then show how I built and tested the trading bot prior to Uniswap v3…
-
Twitter Trading Bot | Elon + DOGE = Profit
In this article I’ll share how I built a Twitter trading bot to trade a cryptocurrency called DOGE every time Elon Musk tweeted something mentioning it. I’ll be using NodeJS to query the Twitter API and then executing trades on FTX. Building A Twitter Trading Bot Video James On YouTube The “Elon Effect” Opportunity Anything…
-
Pine Script Tutorial | How To Develop Real Trading Strategies On TradingView
In this pine script tutorial I’ll be showing you how to get started with TradingView scripting for technical analysis and trading strategy development. We will start by looking at how pine script works and a simple example. From there we will move on to inputs and indicators before creating a complete trading strategy using pine…
-
Solana Tutorial | Building Smart Contracts & dApps For The Solana Hackathon
This Solana tutorial goes through a step by step process of setting up a development environment for Solana, writing and deploying smart contracts and my experiences with entering the Solana Hackathon. Getting Started With Solana Solana is a high performance modern blockchain with impressive throughput capabilities. It can handle 50,000 transactions per second which makes…
-
Separating Signal From Noise on WallStreetBets [Niche Website]
This case study looks at how I went about building a one page website around the trending WallStreetBets community. Creating A Niche Website To Filter WallStreetBets [Video] The Problem & A Simple Solution Starting With A Script Lean Methodology For Niche Websites Marketing A Niche Website Niche Website Monetisation & Financials Conclusion Creating A Niche…
-
Online Business Ideas For 2021
Here are 8 online business ideas to generate passive income in 2021. 8 Online Business Ideas [Video] Teach an Online Course Domaining Print on Demand Building/Flipping Websites Remote Consultant Shopify Store Affiliate Marketing Content Creator / Influencer Conclusion 8 Online Business Ideas [Video] James On YouTube Teach an Online Course Everyone has something to share,…
-
Digital Marketing Overview | Beginners Guide
In this beginners guide I provide a digital marketing overview of how to setup and run online marketing campaigns. Check out the video and there’s more detailed information below and in the digital marketing tutorials section. [Video] Digital Marketing For Beginners How Online Marketing Works Performance Marketing Process Analytics & Tracking Website, Landing Page Design…
-
Website Competitor Analysis | 5 Steps To Research The Competition 🕵️
This article outlines the following five steps to carry out a thorough website competitor analysis. Assessing Competitive Landscape Analyzing Website Traffic Metrics Social Media & Content Analysis Web Technology & Tracking Analysis Personnel & Corporate Structure Research First let’s look at a video example of carrying out competitor research for a Clickbank product. Website Competitor…
-
Custom QR Code Design | How To Create Custom QR Codes For Marketing
Here is an example of a custom QR Code which you can scan with any camera app to get a link back to this website In this article I’m going to show you how you can create these using a free tools. How Do QR Codes Work Generate QR Code Link Import QR Code To…
-
Analytics Strategy | Essential Guide To Data Driven Marketing 📈
This module is part of a free online course where you can learn digital marketing. How to create an analytics strategy to track visitor metrics, provide actionable insights into performance and establish data driven marketing methodology for continuous improvement. [Video] Creating An Effective Analytics Strategy Why Analytics & Privacy Are Important Roadmap For Developing An…
-
Google Analytics Event Tracking | GA Events Setup, Tips & Examples
In this article we will explore what you can do with Google Analytics Events, how to set them up, some example code for where they can be used and some tips for getting the most out of gtag events. Google Analytics Events in 90 Seconds What are Google Analytics Events? Breakdown of an Event Setting…
-
Vanilla HTML | No. 1 Free HTML Boilerplate
A boilerplate is a starter template which contains the skeleton framework for a development project. Vanilla HTML is a HTML,CSS,JS boilerplate designed for websites with particular focus on SEO and performance marketing. Vanilla HTML in under 2 minutes How Does Vanilla HTML Work? Setting Up Vanilla HTML Why Vanilla HTML over WordPress or React? Vanilla…
-
Browser Automation With Javascript
In this article I am going to demonstrate how anyone can learn some simple code to automate common tasks using a standard web browser. Browser automation is a great tool for productivity and scaling up repetitive tasks. James On YouTube What Can Be Automated and Why? Have you ever found yourself carrying out the same…
-
CRO | Conversion Rate Optimisation
This article is part of a free online course where you can learn digital marketing. Conversion rate optimisation or CRO is the process of making a website, landing page or app convert more visitors into leads and customers. What is CRO and do I need it? What is the Average Improvement to Conversion Rate? How…
-
Deno JS | Deno vs Node.JS
Deno is a Javascript and Typescript runtime from the creator of Node.js For anyone that doesn’t know Node.js is a server-side Javascript runtime. It’s used by millions of projects across the globe and powers the backends and API’s of many of the world’s leading websites. Then came Deno (aka Deno.js or Deno JS), an improved…
-
Lead Magnets, Autoresponders & Tripwires | The Modern Sales Funnel
This article is part of a free online course where you can learn digital marketing. Lead magnets, autoresponders and tripwires form key components of a very popular sales funnel. Traffic is pushed into the funnel from traffic sources such as paid ads, content marketing and social media outreach. The visitor is directed to a landing…
-
What is Online Marketing? | A Definitive Guide
This article is part of a free online course where you can learn digital marketing. Introduction In this document I explain how online marketing works, provide online marketing tips and show how online marketers make money. There is a deep dive into building web properties, which traffic sources are being used and how to scale…
-
ReasonLIGO | Building Smart Contracts & Dapps On Tezos
Tezos smart contracts are compiled from a custom low level language called Michelson. For web developers however learning a new low level programming language is a barrier to entry… Enter LIGO and specifically ReasonLigo. ReasonLIGO is the most accessible way to develop smart contracts for web developers. ReasonLIGO is based on ReasonML which is based…
-
How do you turn a website into an app in 7 steps
This is a step by step guide to using a open-source package called Cordova to turn a website into mobile app on Android and iOS. I’ll be using a windows device for this but all the packages are also available for a Mac. To publish an app to the iOS app store you need to…
-
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 can use this framework to create a “perfect blog post” and move your site up the search engine rankings. James On YouTube The Title The title or headline of a blog post should be a close match…
-
How to encrypt text file in Visual Studio Code (VSCode)
I wanted a way to quickly encrypt and decrypt text files in VSCode using a memorised pass phrase so I created an easy to use plugin to encrypt text in Visual Studio Code. VSC has become the text editor of choice for most developers and it is relatively simple to create and publish a plugin…
-
Prevent Mobile Browsers From Turning Off
The following code has been published to prevent mobile browsers from turning off and 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…
-
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…
-
Setting up HTTPS (SSL) with Cloudflare and WordPress
If you are just running a wordpress blog or simple website you can setup Cloudflare to manage SSL for you. Cloudflare acts as a proxy between your website and the user. I recently setup Cloudflare which provides a SSL certificate with their free account plan. Step 1. Setup Cloudflare Register for an account. Then select…
-
Capitalisation of Links (www.MySite.com) CRO Test
I thought an interesting split test would be to test if text links on a landing page that are capitalised get more clicks than ones that don’t. For example: https://www.jamesbachini.com/ – standard (control) https://www.JamesBachini.com/ – Capitalised This was for a site that wasn’t a personal name and contained a full directory and page like http://www.MyGreatWebSite.com/example/page.htm…
-
PHP Redirect with Parameters | Passing GET variables in a Redirect
Update March 2023 To do a 301 PHP redirect with parameters to another page we can use the following code: The entire query parameter string is stored in the following variable. Everything after the question mark. So for the URL: server.com/index.php?test=123&hi=hellothe $_SERVER[‘QUERY_STRING’] will contain this string “test=123&hi=hello” We can then pass this out when redirecting…
-
Wasabi AB Testing Platform
Update July 2020 – Wasabi is no longer maintained or supported. Check this article for more information on conversion rate optimisation. Wasabi AB Testing Platform Intuit have opensourced a enterprise grade A/B testing platform called Wasabi. This runs as an API on a separate server from your site/landers. It isn’t the easiest thing to setup…
-
robots.txt Disallow All | Block Bots
In this article we are going to look at how to block bot traffic using the robots.txt disallow all feature, then some of the more advanced uses of the robots.txt file. How To Disallow All in robots.txt Custom robots.txt for Specific Bots and Directories Complete List of Bots – robots.txt How To Disallow All in…
-
Vibrate Phone with Javascript
The following javascript uses the Vibrate API to make a phone vibrate when a page is loaded. You can time it with setTimeouts or onclick/onscroll if required. There’s more information available at: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate This can be used to draw a users attention to the landing page or to create message effects etc.
-
Node.js client for Moz API (MozScape)
Update 2020: This is outdated now and not maintained. I’d recommend using one of these packages: https://www.npmjs.com/package/moz-api https://www.npmjs.com/package/moz-api-wrapper Original Post: I was doing some work with SEO domains and realised there wasn’t a node.js client for the MozScape API… so after Googling and not finding what I was looking for I built one. What this…
-
REGEX | A Complete Guide With Examples
Regexes are a powerful way to do search queries on a text string. They can be used to replace text, sanitize user inputs and much more. Contents Introduction to REGEX REGEX Cheatsheet REGEX Examples REGEX Javascript Code An Introduction to REGEX A REGEX or regular expression is used to match text strings in many programming…
-
New: Facebook interest targeting brainstorm tool
This is more for my use but others might find it helpful when trying to come up with targeting ideas for interests on Facebook Ads. Facebook Ads Targeting Tool
-
Alert box on click through to offer
The following example will allow you to create an alert box when the user clicks through from your landing page to the offer page. This can be useful to remind users of your offers value proposition, sign-up requirements (double-opt in?) or just to increase conversion rate on the offer end. A working demo is available…
-
A simple iOS / Android traffic splitter in PHP
The following basic PHP code will split traffic by device with iOS traffic going to the first out link, Android to the second and leftovers to the third. TIP: This uses a 301 redirect however you can do any type of programmatic variation based on the user agent. You can copy and paste this into…
-
Splitting traffic to different offers on mobile
If you are buying bulk traffic to a mobile offer the chances are that you can split some of your traffic off to different offers. For example if you have a pin submit that only accepts android but has a much higher payout then you can separate your android traffic and increase your bottom line.…
-
RAM & CPU Usage PHP Script | Server Health Check
This single file server health check script works on Windows, Linux and possibly others. It is written in PHP to show CPU usage, RAM usage, Incoming Connections and Hard disk usage. Update September 2020 Server Check PHP was getting a lot of downloads so I’ve updated the code and open sourced it on Github. If…
-
Basic exit intent pop up script
The following script will launch a pop up and redirect if the user moves the mouse off the page. You can add this to your landing page targeted at desktop users, on mobile it wont work obviously. This is just a basic version but you can change the popUp() function to load an email capture…
-
Resize youtube/vimeo iframe to maximum available height and width
Here is the code to make a flexible youtube.com or vimeo.com video fit both the height and width of the containing div. Like a flexible adsense unit it will take up the maximum available space on the page or be constrained within a containing object such as a div. CSS: .vcontainer { position:relative; padding-bottom:56.25%; padding-top:30px;…
-
Calculate distance between two geocooridnates
Here is a javascript function to calculate the distance between two latitude and longitude coordinates. function deg2rad(deg) { return deg * (Math.PI/180) } function calcDistance(lat1,lon1,lat2,lon2) { var R = 6371; // Radius of the earth in km var dLat = deg2rad(lat2-lat1); var dLon = deg2rad(lon2-lon1); var a = Math.sin(dLat/2) *…
-
Building Basic Websites
Every now and again you just need a basic site setup to have an internet presence. Normally this occurs for me when a friend or family member tells people I “do websites” and I get roped in to helping them out. So what options are there for a basic, modern website template. The obvious answer…
-
Option to Disable Adsense Ads
In some cases it is beneficial to provide a link or option for visitors to a site not to see the adsense ads the first time they visit a page. Ads can sometimes be viewed negatively and for the first visit or under certain circumstances it is best to temporarily disable them. Here is the…
-
Automatic Redirect for Mobile Landing Page
Want a mobile lander with a 90%+ “CTR”? Simply add the following javasript: <script> function go() { location.href = ‘http://www.jamesbachini.com’; } function init() { setTimeout(function() { confirm(‘You have two friends who recommended this app’); },3000); setTimeout(function() { go(); },5000); } </script> Then run the init function on body load like so: <body onload=”init();”> This does…
-
Checking landing page load times
Landing page load times can make a big difference to the conversion rate of an affiliate campaign. Here’s a great free site for checking load times and getting suggestions on how to improve the page load speed. http://gtmetrix.com As you can see I could do with tweeking wordpress to display the images a bit better…
-
Setting up Maxmind GEOIP2 Legacy Database with PHP or Javascript
This is the php code I use to access geoip data from Maxmind’s geoip database: <?php $gpath = getcwd() . “/GeoIPCity.dat”; if (isset($_SERVER[‘HTTP_X_FORWARDED_FOR’])) { $myip = $_SERVER[‘HTTP_X_FORWARDED_FOR’]; } if (isset($_SERVER[‘REMOTE_ADDR’])) { $myip = $_SERVER[‘REMOTE_ADDR’]; } include(“./geoipcity.inc”); $gi = geoip_open($gpath,GEOIP_STANDARD); $record = geoip_record_by_addr($gi,$myip); $city = $record->city; $countrycode = $record->country_code; geoip_close($gi); echo ‘countrycode = “‘.$countrycode.’”; city =…
-
Tool to generate a guest blog post request
This tool can be used to generate a guest blog post request for SEO purposes. This is a great way to not only build SEO juice but it also gets your name out there and helps interact with the community surrounding your niche. http://www.jamesbachini.com/misc/guestpostrequest.php Simply enter your name,site,niche and theirs and it will generate a…
-
Google Friendly Mobile Pages Test
Google have provided a tool which checks to see if a site renders clearly in a mobile browser. The tool looks like it is setup at 320px and if your site works at this you’ll get a “mobile-friendly” tag in your organic search listings. Here’s the link to check your sites: https://www.google.com/webmasters/tools/mobile-friendly/ Some other good…
-
A Simple Mobile Landing Page Template
Here’s a quick design template which is very flexible for mobile app / pin submit type offers. You can view the page at: http://jamesbachini.com/misc/simplemobile.htm And download it from: http://jamesbachini.com/misc/simplemobile.zip Obviously be careful that your button is above the fold on old and new phones. Big image + long headers can push it below which wouldn’t…
-
Daily Calcs Profit And Loss Spreadsheet Download For Affiliate Marketers
Here is the spreadsheet I use to monitor my profit and loss accounts on a daily basis. It’s provided here as a downloadable spreadsheet but I would recommend setting it up how you want and then uploading to Google Docs so it can be worked on from anywhere by anyone. This document works by inputting…
-
How Groupon’s landing page has evolved in two years
In 2012 Groupon was at the cutting edge of performance marketing. They had big budgets and were doing big business with affiliates. I thought it would be interesting to analyse a landing page from back then and then one they use today. The lander actually reminds me a bit of some of the dating landing…
-
Mobile eCPM’s still not competing with desktop
Here’s some stats I ran off today from a Google Adsense account I have for some old seo based domains with various sites and “general” mainstream traffic. It’s interesting to see that the eCPM’s for desktop traffic are still way above that of high end mobile devices: Platform Page views Clicks Page CTR CPC Page…
-
Upgrading to WordPress 4.0 a breeze
I always get the fear when doing major upgrades on any platform. Something is bound to be non-compatible and get messed up. In this instance upgrading to WordPress 4.0 took about 5 minutes, didn’t mess up the themes and everything is still where it should be… right? WordPress is, in my opinion, the best platform…
-
Passing Through Landing Page Variables
This was inspired by another post which is well worth a read at: http://affplaybook.com/blog/affiliate-marketing/the-ultimate-guide-to-landing-page-tricks/ So many traffic sources provide you with tags such as {keyword} {countrycode} {device} etc. You can add these variables to your url so it would look something like: http://www.myserver.com/landingpage.htm?kw={keyword}&device={device} Then in the code to your landing page you can access these…
-
Refactoring for ROI in affiliate marketing
The importance of refactoring is well documented in the programming world. But I haven’t seen it mentioned in an affiliate marketing context. So what is refactoring? Basically starting again from scratch. So instead adding variations to your banners or landing pages, start again and use everything you’ve learned to produce a better campaign. If you…