Child Processes: Multitasking in NodeJS

Deep Dive in Child Processes, Spawn, Exec, ExecFile, Fork, IPC What exactly Child Processes are then? When you run the NodeJS application it’ll have its own process just like any other application you run, may it be VS Code, VLC Player etc. The properties of this process is available on Global object’s process variable that we can… Continue reading Child Processes: Multitasking in NodeJS

Worker Threads : Multitasking in NodeJS

Deep Dive into Worker threads Why do we need worker threads at all? A server can quickly become overwhelmed by a CPU-intensive workload. To illustrate, imagine you have two endpoints: one performs a simple, non-CPU intensive task, while the other handles a complex CPU-intensive operation that takes 10 seconds to complete. If your server is… Continue reading Worker Threads : Multitasking in NodeJS

Intro to multithreaded JavaScript

Escape the single-threaded event loop in browsers and on the server. Here’s how to use worker threads and web workers for modern multithreading in JavaScript. The JavaScript language is one of the wonders of the software world. It is incredibly powerful, flexible, and versatile. One limitation of its fundamental design, however, is its single-threaded nature. Traditional JavaScript appears to handle… Continue reading Intro to multithreaded JavaScript

JavaScript Libraries for AI Engineering

Traditionally known for its role in web development, JavaScript has — much to the surprise of many — also proven invaluable in developing applications that use large language models (LLMs). In this article, we’ll explore five leading tools for AI engineering, highlighting some essential resources for developers wanting to incorporate LLMs into their projects. We’ve chosen them… Continue reading JavaScript Libraries for AI Engineering

Check whether the Time is in HH:MM AM/PM format

Scenario: You have to find if the time string is in hh:mm am/pm format. This code will work even if the hour has only one digit. Function: function isValidTimeFormat(timeStr) {         const regex = /^([1-9]|1[0-2]):([0-5][0-9])s([APap][Mm])$/;         return regex.test(timeStr);       } Result: function will return true for both 5:00 am and 05:00 am values and will return false if… Continue reading Check whether the Time is in HH:MM AM/PM format

Upcoming Changes to External Suitelet URLs in 2024.2

Suitelets that are available without login have updated External URLs as of May 9, 2024. The new URL is displayed in the External URL field on the script deployment record for Suitelets that are available without login. The old URL will stop working as of NetSuite 2024.2. Give special consideration to the following: All hardcoded… Continue reading Upcoming Changes to External Suitelet URLs in 2024.2