How to sort a list in Python
In this article, we’ll learn how to sort list, list of dictionaries, and list of tuples in Python. We can sort lists, lists of tuples, and list of dictionaries in …
How to sort a list in Python Learn MoreIn this article, we’ll learn how to sort list, list of dictionaries, and list of tuples in Python. We can sort lists, lists of tuples, and list of dictionaries in …
How to sort a list in Python Learn MoreIn this article, you’ll learn how to get numbers from a string in C with examples. There are many ways to do that, but my favorite a recommended method is …
How to extract numbers from a string in C? Learn MoreThis article answers one of the most asked questions, “Is Linux an operating system?”. Most of it is discussed in the history of Linux and UNIX, where I explained how …
Is Linux an Operating System? Learn MoreYou’ve probably heard about Linux or at least the word Linux. You might even know it’s an operating system, in fact, it’s the kernel used at the heart of the …
From UNIX to Linux – History of Linux Learn MoreIn this article, you’ll learn about the best themes for Ubuntu and how to install themes on Ubuntu to create a cool Ubuntu desktop using available themes. Linux is all …
Best themes for Ubuntu: Make Ubuntu Beautiful Learn MoreThis C program takes the position as input from the user and deletes the element of array at that position.In this program, the original array and its size is also …
C program to delete an element from an array Learn MoreIn this post, you’ll learn about the insertion sort algorithm in C and how to implement it in the C programming language with and without a function using example programs. …
Insertion sort in C Learn MoreIn this article, you’ll learn about the selection sort algorithm and its implementation program in the C programming language with and without a function in easiest possible way. Selection sort …
Selection sort in C Learn MoreIn this article, you’ll learn about the bubble sort algorithm and how to implement it in the C programming language with and without a function in easiest way. Bubble sort …
Bubble sort in C Learn MoreThere are mainly 7 data types in python: Numerical String List Tuple Dictionary Set Range Let’s try to understand these data types. 1. Numerical data types Numerical data types mainly …
Data types in python | Python tutorial Learn Morestring in python is one of the most important and interesting data type. . .
Strings in Python Learn MoreMicrosoft’s Visual Studio Code is the IDE for both novice and professional software/application developers. It is very easy to use and no expensive resources are required to run this IDE. …
How to install Visual Studio Code on Ubuntu? Learn MoreThis article covers the most common query – How to start programming in python? Start python by running the Python interactive prompt.Just type python (or python3 if you’ve both python …
Learn Python programming- Getting started Learn MoreIs python hard to learn? How long to learn python? Is python easy to learn? there are many similar questions that come to one’s mind while starting to learn python. This article will clear your all the doubts related to the language and you’ll get the best resources to learn python at the end.
Is Python hard to learn? Top best learning resources Learn MoreThis is a very frequently asked question, how do I pad a numeric string with zeroes to the left, so that the string has a specific length? In this article, …
How to pad a string with zeroes to the left? Learn MoreThe major difference between process and thread is that threads (of the same process) run in shared memory space, while processes run in separate memory spaces. Let’s learn more about …
What is the difference between process and thread? Learn MoreAlgorithm To generate a random string, concatenate characters drawn randomly from the set of acceptable symbols until the string reaches the desired length. Implementation Here’s some fairly simple and very …
How to generate a random alpha-numeric string in Java? Learn MoreHere is a solution that will both vertically and horizontally align your img within a div without any stretching even if the image supplied is too small or too big …
How to auto-resize an image to fit a ‘div’ container? Learn MoreThe –format option of inspect comes to the rescue. Modern Docker client syntax is: Old Docker client syntax is: These commands will return the Docker container’s IP address. As mentioned in the comments: if …
How to get a Docker container’s IP address from the host? Learn MoreUse native JSON.stringify method. Works with nested objects and all major browsers support this method. Link to Mozilla API Reference and other examples. Use a custom JSON.stringify replacer if you encounter this Javascript error How to display a …
How to display a JavaScript object? Learn MoreThere are services that can be enabled/disabled using the GUI (like the startup application) or the terminal. For the Terminal you have several options. First, open a terminal (Type “terminal” in the …
How to enable or disable services in Ubuntu? Learn MoreSample query: When I run sudo the terminal is stuck for a few seconds and then outputs an error message. My terminal looks like this: What can I do to solve it? …
Error message “sudo: unable to resolve host (none)” Learn MoreSample query: I want to ssh or bash into a running docker container. Please, see example: Now I want to get something like this (go into the running container): $ …
How to get bash or ssh into a running container in background mode? Learn MoreYou just need to do apt-get install –only-upgrade <packagename>. This will upgrade only that single package, and only if it is installed. If you wish to install the package if it …
How to upgrade a specific package using apt-get? Learn MoreJust press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below: OR You can also use awk: How to list, add, modify, and delete users using terminal? …
How to list, add, modify, and delete users using terminal? Learn MoreOn a default installation the cron jobs get logged to You can see just cron jobs in that logfile by running If you haven’t reconfigured anything,the entries will be in …
Where is the cron/crontab log? Learn MoreIn this article, we’ll learn how to use docker without sudo. If you want short answers, jump to the next answer below. Good news: the new docker (version 19.03 (currently …
How to use docker without sudo? Learn MoreThe command du “summarizes disk usage of each FILE, recursively for directories,” e.g., -h is to get the numbers “human readable”, e.g. get 140M instead of 143260 (size in KBytes) -s is for summary (otherwise you’ll get not …
How to determine the total size of a directory from the terminal? Learn MoreHere are multiple solutions to resolve this issue, but if the first 2 don’t work out, jump to the 5th answer. Remove your /var/lib/dpkg/lock file and force package reconfiguration. It should work …
Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? Learn MoreIn this article, we’ll learn how to save the output from the terminal to a file. The first question is, is it possible? Yes it is possible, just redirect the …
How to save the terminal output to a file? Learn MoreAccording to an article on debian-administration.org, If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade …
“The following packages have been kept back:” How to solve it in Linux? Learn More