Master MediaPipe JavaScript for building browser-based computer vision applications. Learn to create cross-platform web apps with real-time processing, PWA features, and advanced web technologies.
Tag: javascript
Real-Time WebSocket Architecture Series: Part 2 – Building Your First WebSocket Server (Node.js)
Part 2: Learn to build your first WebSocket server using Node.js and Socket.io. Step-by-step tutorial with complete code for a real-time chat application.
Introducing Group Code: Organize Your Codebase by Functionality in VS Code
Discover Group Code, a VS Code extension that organizes your codebase by functionality across files and languages—making navigation, reviews, and debugging faster.
Building a Modern Node.js CLI Generator for Microservices – Part 1: Introduction and Project Setup
In today’s microservices-driven development landscape, setting up new services with consistent architecture, proper tooling, and best practices can be time-consuming and error-prone. What if you
MSAL Authentication in React: Complete Guide – Part 2: MSAL Provider and Authentication Context
Welcome back to our MSAL authentication series! In Part 1, we covered the basics of MSAL and Azure AD setup. Now, let’s implement the MSAL
MSAL Authentication in React: Complete Guide – Part 1: Introduction and Setup
Microsoft Authentication Library (MSAL) provides robust authentication capabilities for React applications, enabling seamless integration with Azure Active Directory and Microsoft Identity Platform. In this comprehensive
Building a Robust Service Scheduler in Node.js – Part 1: Introduction and Architecture
In modern applications, we often need to run background tasks at specific intervals – whether it’s checking for updates, cleaning up data, or synchronizing with
Best practices for integrating third-party APIs and services into your software
Master the art of third-party API integration with this comprehensive guide covering planning, security, implementation strategies, error handling, and best practices for reliable service integration.
Calling a function at certain interval of time
Here is the piece of code that helps you to update a function at certain interval of time. The time is usually calculated in milliseconds.
Code for drawing a line using Bresenham algorithm in Javascript
Here is the snippet for drawing a line in javascript. function drawline(xa,ya,xb,yb){ var dx=Math.abs(xa-xb); var dy=Math.abs(ya-yb); var p=2*dy-dx; var twody=2*dy; var twodydx=2*(dy-dx); var x,y,xend;