EIP-1557 – Ethereum Transaction Fees and Block Size
Post London upgrade which implements EIP-1559, Ethereum has changed how block size and transaction fees works. Block Gas Limit Earlier Ethereum block gas limit was calculated using the below formula:...
View ArticleBlockchain based Identity, Records Management and Voting using AWS
The purpose of tutorial article is to understand the architecture and thought process of building a blockchain based decentralised identity, records management and voting solution using AWS for the...
View ArticleGenerate Unique Number in JavaScript
Here is the code that can generate a unique number in JavaScript. function uniqueNumber() { var date = Date.now(); if (date <= uniqueNumber.previous) { date =...
View ArticleBuilding ERC20 Tokens Wallet APIs using BitGo
BitGo provides APIs for creating and integrating wallets in your app for several coins and ERC20 tokens. For creating ERC20 token wallets you will have to buy a BitGo enterprise contract. But in this...
View ArticleWriting Upgradable Smart Contracts in Solidity
As you must be aware that smart contracts are immutable programs that run exactly as programmed without any third party interface. Smart contracts cannot be modified once they are deployed which is...
View ArticleCalculating Nonce for Raw Transactions in Geth
Here is the code to calculate the transaction nonce for raw transactions in Ethereum’s geth client. function getNonce(address, callback) { web3.eth.getTransactionCount(address, function(error,...
View ArticlePointing Domain to AWS Elastic Load Balancing
Amazon ELB is an auto scalable load balancer that sits in front of EC2 instances and distributes traffic between them. Client communicates with ELB not with EC2 instances directly. When you create a...
View ArticleFind Recorded Audio File Location in Cordova
Many people use the Media Plugin to record audio in cordova apps. Here is an sample code that shows how to record: var extension = null; document.addEventListener("deviceready", function(){...
View ArticleES6 Reflect API Tutorial
This post is a part 18 of ECMAScript 6 Complete Tutorial post series. Object reflection is an language ability to able to inspect and manipulate object properties at runtime. JavaScript already had...
View ArticleExpress.js Middleware Tutorial
Developers who are new to Express often get confused with the difference between route handler and middleware. Therefore they also get confused with the difference between app.use(), app.all(),...
View ArticleStoring Data Locally in a Intel XDK App
This post is a part 53 of Intel XDK Complete Tutorial post series. I wrote an article on how to store data locally in cordova based apps. As Intel XDK builds cordova apps therefore the technique is...
View ArticleStreaming File Uploads to Storage Server with Node.js
In this tutorial I will show how to stream a file uploaded by user to a file storage server(such as Amazon S3 or any other custom server) without storing file in a temporary directory. The advantage of...
View ArticleGenerate Unique Number in JavaScript
Here is the code that can generate a unique number in JavaScript. function uniqueNumber() { var date = Date.now(); if (date <= uniqueNumber.previous) { date =...
View ArticleJSON.parse() throws “unexpected token” error for valid JSON
Although your JSON string is valid JSON.parse is likely to throw error. This is because JSON.parse cannot parse some special characters that are \n, \t, \r and \f. You need to escape these special...
View ArticleBest Photo Straightening Online Tool
Fotor Photo Straighten is an online tool which lets you straighten a photo very easily. It provides a really awesome UI control to let you manually straighten a photo. Here is how a bended photo looks:...
View ArticleIntegrating Local Notifications in Intel XDK
This post is a part 52 of Intel XDK Complete Tutorial post series. I have written a tutorial for SitePoint on how to integrate Local notifications in a Cordova App built using Cordova CLI. The same...
View ArticleWordPress Default Comment Form CSS Classes
WordPress comes with some built-in comments system. While developing a WordPress theme you need to style the individual comments and comment form to display them appropriately. Here is the list of CSS...
View ArticleWordPress Default Widgets CSS Classes
WordPress comes with some built in widgets such as recent comments, calendar, tags, categories etc. While developing a WordPress theme you need to style the default widgets too. Here is the list of CSS...
View ArticleTwitter Login in Intel XDK APP using ngCordovaOauth
This post is a part 51 of Intel XDK Complete Tutorial post series. Twitter Login is a form of single sign-on using existing login information from Twitter by creating a new login account if doesn’t...
View ArticleWordPress Visual Editor Generated Classes
The visual editor is the most used component of the WordPress. There are some classes added by WordPress to the visual editor elements to style them. As a theme developer its your responsibility to...
View Article