javascript

  • How to Fix: Could not establish connection. Receiving end does not exist May 08 2019
    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 Apr 17 2019
    Let's take a look at a Kafka Nodejs example with Producers and Consumers. Using the library kafka-node, it is very easy write a kafka application in javascript.

  • Flying a Drone With Javascript Apr 15 2019
    Here is how I spend my weekends, flying a drone with javascript and NodeJS. Using the DJI Tello, it's very easy to do.

  • JWT Tokens in Express and NodeJS Apr 22 2018
    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 Mar 28 2018
    Chrome extensions are really cool. They allow the user to extend the capabilities of their browser and can incorporate really well into existing apps. So let’s take a look at how to build a Chrome Extension in less than 10 minutes. Chrome Extensions are written in Javascript, so I recommend that you have a basic understanding of Javascript before proceeding with this tutorial. 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.

  • Google Poly API Javascript and NodeJS Mar 26 2018
    Google has been working on an interesting project called Poly. With Poly, you have access to hundreds of 3D objects that can be used to build VR games or with AR content. The interesting about Poly is that all of the graphics are available on demand. Think of it like Google Fonts just for 3D objects. So let’s take a look at how you can get started with Google Poly API Javascript and NodeJS bundle.

  • Meltdown and Spectre – Possible Javascript Vulnerabilities Jan 05 2018
    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.

  • GPU Programming in Javascript Dec 26 2017
    You probably don’t think about Javascript when you hear the words GPU programming. However, it should come as no surprise that there is a library to do anything and that includes GPU Programming in Javascript. Let’s get one thing clear though, you should probably not do this if you are looking to do serious GPU programming. For serious GPU programming, I recommended that you work with Nvidia’s CUDA in C and C++.

  • Javascript for of vs for in vs for each Dec 22 2017
    If you are new to Javascript (or even a seasoned js developer), you will probably get confused when trying to understand the different types of for loops. So let’s go through the javascript for of vs for in vs for each loop. 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.

  • Build a Multiplayer game using Javascript Dec 10 2017
    In this tutorial, we will take a look at how to build a multiplayer game using Javascript and NodeJS. My goal is to take you through the basic setup so that you can begin focusing on the actual gameplay. When building a full-scale MMO, there are a lot of things to consider like load balancing, network contingencies, etc. For now, we are going to focus on the bare minimum just to help you get an understanding of how you can creatively and effectively use the available tools of NodeJS to get started.

  • Javascript Hashcash Proof of Work Dec 04 2017
    Suppose that you developed an app that will give users free stuff when they click a button. Obviously, there’s nothing stopping one user from spamming the button one million times and collecting a whole bunch of free stuff. If you wanted to prevent that, you could use something like a CAPTCHA, or perhaps give each user a session and cool off period. You could also implement something called a proof of work system.

  • Build a Javascript Blockchain Dec 04 2017
    Blockchain! It’s the mystical buzzword that every company is saying right now. At its core, the basic concept of blockchain is not hard to understand; it’s essentially a distributed linked list. It’s also used by the popular cryptocurrency called Bitcoin. The advantages of Blockchain is that it allows for a decentralized collection of data whose integrity is easily verifiable, and the data itself is immutable Keep in mind that a fully robust blockchain will also contain smart contracts, mining algorithms (proof of work/proof of stake) and other flavorful elements that you could enhance the chain with.

  • Multithreaded Javascript Oct 22 2017
    For the longest time, Javascript has always been implemented using a single thread in your browser. For the most part, this wasn’t a problem. If you’re just using javascript for simple DOM manipulations or form submissions then a single thread is all you need. However, once developers started getting more advanced with their Javascript usage, this eventually led to an issue. Let’s say I have the following single page application (SPA) that shows a list of prime numbers from 1 to 600,000:

  • JavaScript Read USB Oct 15 2017
    You can now officially use JavaScript to read USB devices that are connected to your computer. This is using the new WebUSB API that is still in early draft. As being so, the API could later change or be removed altogether until it receives the final verification. In order to use WebUSB you need to be running the latest version of Google Chrome, with the experimental web platform features flag enabled.

  • Snapchat using Javascript – Zuck.js Oct 15 2017
    Stories! Stories are everywhere these days. Snapchat, Instagram, Facebook, Facebook Messenger and Whatsapp all have stories. Hell, it’s only a matter of time before Microsoft Excel gets a stories update. [][1] In any case, if you want to build an app like Snapchat or build an app like Instagram, there is an easy way to do so. The focus of this tutorial will be about building the story functionality of Snapchat and Instagram into an app.