How to Fix: Could not establish connection. Receiving end does not exist
If you are developing a Chrome extension with message passing, then you might have received the following error: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
Kafka Nodejs Example with Producers and Consumers
Scrape Google Search Using Puppeteer
I needed to scrape Google search using Puppeteer for my sideproject. I navigated to google search results and clicked on a link.
JWT Tokens in Express and NodeJS
The JSON Web Token (JWT) is the easiest standard for protecting APIs and passing in claims data. A JSON Web token allows the server to verify the authenticity of the user and provide them access to protected API routes and data. A simple JWT flow goes as follows:
The user sends login credentials to the server The server verifies user against the database then returns a JWT token if valid The user sends that token in the header with every request to API.
How to build a Chrome Extension
What we’re building We are going to build a simple chrome extension that will allow you to search google for any text that you highlight on a page.
This has been a very interesting New Year. So far, 2018 has brought us two of the biggest bugs to hit CPUs in the past 12 years: Meltdown and Spectre. Intel is struggling to get their Meltdown bug under control while Amazon and Microsoft brutally await its impact on their cloud services. Both Meltdown and Spectre are serious issues, but Meltdown is easier to exploit and gives attackers more valuable information.
Standard for loop Suppose we have an array called myArray. Here’s how you would iterate through it using the standard for loop:
var myArray = ['Cat','Dog','Horse']; for(let i =0; i< myArray.