Tag: Space
Python : How to pad strings with zero, space or some other character ?
In this article we will discuss how to do left padding of strings or right padding of strings either with zero, space or some other character. Left padding of string in Python Left padding a string means adding a given character at the left side of string to make it of a given length. Let’s …
Python : How to pad strings with zero, space or some other character ?Read More
Javascript: Replace multiple spaces with a single space
A lot of standard requirements are there in javascript related to the processing of strings. One such generic requirement is to replace multiple spaces with a single space in a javascript string. This article will discuss and demonstrate how to remove duplicate spaces using various example illustrations. Table of Contents:- Replace multiple spaces with a …
Javascript: Replace multiple spaces with a single spaceRead More
Javascript: String Replace Space with Dash
A general requirement while working with javascript is to process strings and replace particular characters with some other. One such condition is to replace spaces with the dash in javascript strings. Table of Contents:- Javascript string replace spaces with dash using replace() Javascript string replace spaces with dash using split() and join() Javascript string replace …
JavaScript: Check if String Starts with Space
A general requirement many people encounter while working with javascript strings is to check if the first letter of the string is a space. This article demonstrates easy ways to check if the string starts with a space using different methods and illustration examples. Table of Contents: Check if String Starts with Space using RegExp …
Convert space delimited string to a list in Python
In this Python tutorial, we will learn how to convert a space delimited string to a list. Table Of Contents Convert Space delimited string to a list using split() Convert Space delimited string to a list using split() with for loop Convert space delimited string to a list using split() with the strip() Summary Convert …
Simple Ways to Free Up Space in Ubuntu Linux
Ever running out of disk space in your Ubuntu server or system, you can follow the below simple ways to free up space and clean your Ubuntu. In thins guide you are going to learn how to clean up cache, old kernels, remove unused packages, journal logs. Prerequisites Access to server or system with root …
How to Add Swap Space on Ubuntu 22.04
How to Add Swap Space on Ubuntu 22.04. Swap Space is a space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, swap space let you store additional information. Swap space can help machines with a small amount of …
How to Add Swap Space on Ubuntu 20.04
How to Add Swap Space on Ubuntu 20.04. Swap Space is a space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, swap space let you store additional information. Swap space can help machines with a small amount of …
How to Add Swap Space on Ubuntu 18.04 – Google Cloud
How to Add Swap Space on Ubuntu 18.04 on Google Cloud. Swap Space is a space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. Swap space can help …
How to Add Swap Space on Ubuntu 18.04 – Google CloudRead More
How to Add Swap Space on Debian 11
How to Add Swap Space on Debian 11. Swap Space is a space in Linux is used when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. Swap space can help machines with a …