Skip to main content

Posts

Showing posts from 2020

Python Multi Threading

Speeding up Python code using multithreading A lot of times we end up writing code in Python which does remote requests or reads multiple files or does processing on some data. And in a lot of those cases I have seen programmers using a simple  for loop  which takes forever to finish executing. For example: import requests from time import time  url_list = [     "https://via.placeholder.com/400",     "https://via.placeholder.com/410",     "https://via.placeholder.com/420",     "https://via.placeholder.com/430",     "https://via.placeholder.com/440",     "https://via.placeholder.com/450",     "https://via.placeholder.com/460",     "https://via.placeholder.com/470",     "https://via.placeholder.com/480",     "https://via.placeholder.com/490",     "https://via.placeholder.com/500",     "https://via.placeholder.com/510...

Linux NPM Node Configuration

How To Install Node.js On Ubuntu 18.04 Introduction Node.js is a powerful, open-source JavaScript runtime environment designed to enable the implementation of server-side JavaScript code. It's a cross-platform package that allows developers to run JavaScript code on a machine like a standalone application. The platform is primarily used to create robust back-end, server-side applications, but it's also useful as a front-end solution. This tutorial will help you install Node.Js on Ubuntu 18.04 Bionic Beaver Linux via three options: from Ubuntu repository, from NodeSource repository, and using the Node Version Manager (NVM). Part 1: Installing Node.js From Ubuntu 18.04 Repository Node,js is a reliable package that is available from the repository of latest distribution of Ubuntu (18.04). In the first part of this tutorial will install Node.js and the Node.js Package Manager (NPM) from Ubuntu 18.04 repository. Step one - Installing Node.js First, update the p...

Azure Understanding different roles

https://docs.microsoft.com/en-us/azure/role-based-access-control/rbac-and-directory-admin-roles